Skip to main content
Version: 4.x.x

CacheStorageType


import { CacheStorageType } from "@hyper-fetch/core"

Description

Defined in cache/cache.types.ts:61

Preview

type CacheStorageType = {
clear: () => void;
delete: (key: string) => void;
get: <Response,Error,Adapter>(key: string) => CacheValueType<Response, Error, Adapter> | undefined;
keys: () => string[] | IterableIterator<string> | string[];
set: <Response,Error,Adapter>(key: string, data: CacheValueType<Response, Error, Adapter>) => void;
}

Structure

{
clear: () => void;
delete: (key: string) => void;
get: (key: string) => CacheValueType<Response, Error, Adapter> | undefined;
keys: () => string[] | IterableIterator<string> | string[];
set: (key: string, data: CacheValueType<Response, Error, Adapter>) => void;
}